import itchat

itchat.auto_login()

fr = itchat.get_friends()

num = 0

for f in fr:
    dict = {}
    dict['name'] = f.RemarkName
    num += 1
    print(dict)

print(num)